package edu.zut.cs.software.estateagent.order.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.zut.cs.software.base.web.spring.controller.GenericController;
import edu.zut.cs.software.estateagent.order.domain.PurchaseOrder;
import edu.zut.cs.software.estateagent.order.service.PurchaseOrderManager;
@CrossOrigin(origins = "*")
@Controller
@RequestMapping("/purchaseorder")
public class PurchaseOrderController extends GenericController<PurchaseOrder, Long, PurchaseOrderManager> {
	PurchaseOrderManager purchaseorderManager;

	@RequestMapping("/index")
	public String index() {
		return "purchaseorder/index";
	}

	@Autowired
	public void setPurchaseOrderManager(PurchaseOrderManager purchaseorderManager) {
		this.purchaseorderManager = purchaseorderManager;
		this.manager = this.purchaseorderManager;
	}
}